package top.chengdongqing.mishop.media.video

import top.chengdongqing.mishop.entities.Video
import java.io.Serializable

data class VideoVO(
    val id: Int,
    val name: String,
    val description: String?,
    val coverUrl: String,
    val videoUrl: String
) : Serializable {
    companion object {
        fun of(video: Video): VideoVO {
            return VideoVO(
                video.id,
                video.name,
                video.description,
                video.coverUrl,
                video.videoUrl
            )
        }
    }
}
